set(ECHOSERVER_SRC
    ${CMAKE_SOURCE_DIR}/src/eventloop.cpp
    ${CMAKE_SOURCE_DIR}/src/channel.cpp
    ${CMAKE_SOURCE_DIR}/src/epoll_poller.cpp
    ${CMAKE_SOURCE_DIR}/src/acceptor.cpp
    ${CMAKE_SOURCE_DIR}/src/tcpserver.cpp
    ${CMAKE_SOURCE_DIR}/src/tcpconnection.cpp
    ${CMAKE_SOURCE_DIR}/src/socket.cpp
)

add_executable(echo_server
    echo_server.cpp
    ${ECHOSERVER_SRC}
)

target_link_libraries(echo_server pthread)

